]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ScreenShield: hide the lightboxes when resuming from suspend
authorGiovanni Campagna <gcampagn@redhat.com>
Fri, 23 Aug 2013 12:14:22 +0000 (14:14 +0200)
committerGiovanni Campagna <gcampagn@redhat.com>
Fri, 23 Aug 2013 12:21:02 +0000 (14:21 +0200)
We show a lightbox when we suspend, to animate the fading to black
caused by turning off the monitors, but we need to hide it when
coming back, otherwise the user is just staring at a black screen
it until he moves the mouse or presses a key.

https://bugzilla.gnome.org/show_bug.cgi?id=706654

js/ui/screenShield.js

index eaeafe01fc3cdd1937260306cf740b7b95ebe0c4..f9ab4e9cbf7dcc4ccd6f38993a3fca7a6db0a49b 100644 (file)
@@ -732,6 +732,8 @@ const ScreenShield = new Lang.Class({
             this.lock(true);
         } else {
             this._inhibitSuspend();
+
+            this._onUserBecameActive();
         }
     },